package com.alex.wechat.mp.tag.service;

import java.util.List;

import org.jeecgframework.core.common.service.CommonService;

import com.alex.wechat.mp.tag.entity.WxTagEntity;
import com.alex.wechat.mp.tag.entity.WxUserTagEntity;

public interface WxTagServiceI extends CommonService {

  public <T> void delete(T entity);

  /**
   * 添加一对多
   * 
   */
  public void addMain(WxTagEntity wxTag, List<WxUserTagEntity> wxUserTagList);

  /**
   * 修改一对多
   * 
   */
  public void updateMain(WxTagEntity wxTag, List<WxUserTagEntity> wxUserTagList);

  public void delMain(WxTagEntity wxTag);

  /**
   * 默认按钮-sql增强-新增操作
   * 
   * @param id
   * @return
   */
  public boolean doAddSql(WxTagEntity t);

  /**
   * 默认按钮-sql增强-更新操作
   * 
   * @param id
   * @return
   */
  public boolean doUpdateSql(WxTagEntity t);

  /**
   * 默认按钮-sql增强-删除操作
   * 
   * @param id
   * @return
   */
  public boolean doDelSql(WxTagEntity t);
}
